package day20171015;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.IOException;
import java.sql.Date;

public class Url {
    public static void main(String[] args) throws IOException {
        for (int i=0; i <= 6026; i++) {
            String url = ("https://www.tripadvisor.cn/TourismBlog-t " + i + ".html");//这就是需要爬的url
            Document doc = Jsoup.connect(url).get();
            String title = doc.title();//这就是拿到的文本
            //这就是抓取时间
            System.out.println(title);
        }

    }
}
